import java.io.*;

public final class bq extends cj {

	public ac a;
	public String b;
	public String c;
	public String d;
	public int e;
	public boolean f;
	public boolean g;
	public String h;
	public q i;
	public long j;
	public Object k;
	public bx l;

	public bq() {
		g = true;
	}

	public final int a() {
		return 29;
	}

	public final void a(DataInput datainput, int i1, int j1) {
		switch (i1) {
		case 2: // '\002'
			a = c.d(datainput);
			return;

		case 11: // '\013'
			datainput.readByte();
			b = c.a(datainput);
			return;

		case 12: // '\f'
			c = c.a(datainput);
			return;

		case 0: // '\0'
			super.o = datainput.readByte();
			return;

		case 3: // '\003'
			f = true;
			return;

		case 7: // '\007'
			g = true;
			return;

		case 8: // '\b'
			g = false;
			return;

		case 13: // '\r'
			d = c.a(datainput);
			return;

		case 14: // '\016'
			j = datainput.readLong();
			return;

		case 16: // '\020'
			h = c.a(datainput);
			return;

		case 17: // '\021'
			i = q.a(datainput);
			return;

		case 1: // '\001'
		case 4: // '\004'
		case 5: // '\005'
		case 6: // '\006'
		case 9: // '\t'
		case 10: // '\n'
		case 15: // '\017'
		default:
			super.a(datainput, i1, j1);
			return;
		}
	}

	public final void a(DataOutput dataoutput, ax ax1) {
		a(dataoutput, ax1);
		if (a != null) {
			c.a(ax1, a);
			ax1.a(dataoutput, 2);
		}
		if (b != null) {
			c.a(ax1, b);
			ax1.a(dataoutput, 11);
		}
		if (c != null) {
			c.a(ax1, c);
			ax1.a(dataoutput, 12);
		}
		if (f)
			ax1.a(dataoutput, 3);
		if (g) {
			ax1.a(dataoutput, 7);
		} else {
			ax1.a(dataoutput, 8);
		}
		if (d != null) {
			c.a(ax1, d);
			ax1.a(dataoutput, 13);
		}
		if (e > 0) {
			ax1.writeInt(e);
			ax1.a(dataoutput, 15);
		}
		if (j != 0L) {
			ax1.writeLong(j);
			ax1.a(dataoutput, 14);
		}
		if (h != null) {
			c.a(ax1, h);
			ax1.a(dataoutput, 16);
		}
		if (i != null) {
			i.a(ax1);
			ax1.a(dataoutput, 17);
		}
	}

	public static bq a(String s, q q1, long l1, Object obj, bx bx1, boolean flag) {
		bq bq1 = new bq();
		bq1.h = s;
		bq1.i = q1;
		bq1.k = obj;
		bq1.l = bx1;
		bq1.g = bx1 != null;
		bq1.j = l1;
		d.a.a(bq1, flag);
		return bq1;
	}
}